/* __auth__ : KunLin */

package com.cskaoyan.bean.vo.goods;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@NoArgsConstructor
@Data
public class WXGoodsCategoryVO {

    private Integer errno;
    private DataDTO data;
    private String errmsg;

    public WXGoodsCategoryVO success(){
        this.setErrmsg("成功");
        this.setErrno(0);
        return this;
    }

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        private CurrentCategoryDTO currentCategory;
        private List<BrotherCategoryDTO> brotherCategory;
        private ParentCategoryDTO parentCategory;

        @NoArgsConstructor
        @Data
        public static class CurrentCategoryDTO {
            private Integer id;
            private String name;
            private String keywords;
            private String desc;
            private Integer pid;
            private String iconUrl;
            private String picUrl;
            private String level;
            private Byte sortOrder;
            private Date addTime;
            private Date updateTime;
            private Boolean deleted;
        }

        @NoArgsConstructor
        @Data
        public static class ParentCategoryDTO {
            private Integer id;
            private String name;
            private String keywords;
            private String desc;
            private Integer pid;
            private String iconUrl;
            private String picUrl;
            private String level;
            private Byte sortOrder;
            private Date addTime;
            private Date updateTime;
            private Boolean deleted;
        }

        @NoArgsConstructor
        @Data
        public static class BrotherCategoryDTO {
            private Integer id;
            private String name;
            private String keywords;
            private String desc;
            private Integer pid;
            private String iconUrl;
            private String picUrl;
            private String level;
            private Byte sortOrder;
            private Date addTime;
            private Date updateTime;
            private Boolean deleted;
        }
    }
}
